import '@assets/css/normalize.css'
import 'element-plus/dist/index.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PiniaPluginPersist from 'pinia-plugin-persist'

const store = createPinia()
store.use(PiniaPluginPersist)

import App from './App.vue'
import router from './router'

const app = createApp(App)
import loginDialogPlugin from '@plugin/loginDialogPlugin/index'
import dialog from '@components/dialog/index.vue' //  引入总览页面的弹窗

app.component('AIdialog', dialog)

// app.use(createPinia())
app.use(store)
app.use(router)
app.use(loginDialogPlugin)

app.mount('#app')
